// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import AntD from 'ant-design-vue'
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'; // 引入中文包
import store from './store/index'
/*import commonJS from '../static/js/commonJS'*/
import staticMenu from "../static/staticMenu/staticMenu" //静态菜单
import "ant-design-vue/dist/antd.css"
import '../static/css/font-awesome-4.7.0/css/font-awesome.css'
import "bootstrap/dist/css/bootstrap.min.css"
import App from './App'
import router from './router'
/*Vue.use(commonJS)*/
import Router from 'vue-router'
import jsPlumb from 'jsplumb'

Vue.config.productionTip = false
Vue.prototype.$zhCN = zhCN
Vue.prototype.$staticMenu = staticMenu
Vue.use(AntD)   //注册ant-design-vue,以便Vue程序识别

Vue.use(Router)
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.prototype.$jsPlumb = jsPlumb.jsPlumb

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store: store,
  components: {App},
  template: '<App/>'
})
